package top.toptimus.dto.design;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import top.toptimus.dto.order.orderSync.orderCommit.DTODesignPoints;

/**
 * 设计点质检项目
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DesignItemCheckDTO {
    private String itemTypeNameCn;
    private String itemCd;
    private String itemValue;
    private String optionValue;
    //  设计点名称
    private String name;
    private boolean ifPass;//是否通过
    private int index;  //  顺序

    public DesignItemCheckDTO(DTODesignPoints dtoDesignPoints) {
        this.itemTypeNameCn = dtoDesignPoints.getItemTypeNameCn();
        this.itemCd = dtoDesignPoints.getItemCd();
        this.itemValue = dtoDesignPoints.getItemValue();
        this.optionValue = dtoDesignPoints.getOptionValue();
        this.name = dtoDesignPoints.getName();
        this.ifPass = false;
    }
}
